package com.lansea.wms.model;

import com.lansea.wms.entity.ValidClass;
import com.lansea.wms.util.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Repository;

import javax.validation.constraints.Min;
import java.util.Date;
@Data
@Repository
@ApiModel(value = "Depart", description = "公司部门")
public class Depart {

    @Min(value = 1, message = "id非法", groups = {ValidClass.EditForm.class})
    private Integer id;
    @ApiModelProperty(value = "编码长度必须为")
    private String code;

    @ApiModelProperty(value = "部门名称长度必须为")
    private String name;
    private Integer createUid;
    private Integer updateUid;

    @DateTimeFormat(pattern = DateUtil.DATE_TIME_FORMAT)
    private Date createTime;

    @DateTimeFormat(pattern = DateUtil.DATE_TIME_FORMAT)
    private Date updateTime;

    private String createUserName;
    private String updateUserName;



}
